package Units;
import main.Player;
import main.Unit;
/**
 * the set up for the cavalry unit type
 * @author Bart
 *
 */
public class Cavalry extends Unit {
	static int[] c = {10, 2, 15, 0, 0, 0, 0};
	static String[] tech = {"Horse"};
/**
 * base constructor
 * @param xposition
 * @param yposition
 * @param o
 */
	public Cavalry(int xposition, int yposition, Player o){
		super(xposition, yposition, 20, 20, 6, o,4);
		//xpos, ypos, chealth, mhealth, move, owner, damage
		name="Cav";
		setCost(c);
		if(o.getRes().getTree().checkIfComplete("MetalW"))
			this.setDamage(this.getDamage()+2);
	}
}
